@testset "228.summary-ranges.jl" begin
    @test max_profit_iii([1]) == 0
    @test max_profit_iii([7,6,4,3,1]) == 0
    @test max_profit_iii([91, 11, 6, 40, 14, 56, 30, 60, 80, 69, 19, 22, 35, 66, 98, 84, 79, 38, 20, 48, 48, 4, 50, 42, 95, 16, 27, 61, 52, 12, 84, 80, 64, 61, 88, 42, 39, 1, 62, 55, 31, 34, 71, 21, 14, 83, 57, 94, 10, 69, 56, 66, 32, 46, 29, 92, 70, 2, 21, 10, 57, 42, 74, 97, 51, 51, 52, 91, 63, 72, 89, 82, 93, 74, 97, 89, 69, 25, 51, 71, 9, 51, 37, 3, 53, 38, 13, 86, 30, 78, 12, 33, 96, 39, 87, 100, 77, 52, 11, 17, 95, 65, 1, 34, 88, 16, 33, 7, 84, 81, 47, 93, 59, 86, 39, 2, 87, 44, 48, 34, 33, 59, 57, 3, 74, 73, 66, 18, 38, 60, 47, 73, 21, 38, 90, 68, 28, 38, 32, 20, 61, 78, 28, 63, 62, 8, 62, 59, 78, 13, 30, 21, 27, 67, 17, 61, 39, 65, 61, 84, 7, 73, 52, 34, 18, 85, 62, 68, 75, 46, 45, 91, 90, 6, 8, 87, 83, 70, 6, 64, 42, 93, 1, 57, 37, 61, 68, 88, 32, 94, 94, 36, 42, 67, 1, 77, 47, 95, 64, 89]) == 193
    @test max_profit_iii([1,2,3,4,5]) == 4
end
